#include "Myuser.h"

//using std::vector;
vector<User> userList;

int getFd(char *UID)
{
    for (int i = 0; i < userList.size(); i++)
    {
        if (strcmp(UID, userList[i].UID) == 0)
            return userList[i].fd;
    }
    return -1;
}

void addFd(int fd, char *UID)
{
    User user;
    
    user.fd = fd;
    strcpy(user.UID, UID);
    userList.push_back(user);
}
